﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace jQM
{
    public class BasicLinkedListItem : BasicListItem
    {
        public string Link { get; set; }
        public bool IsExternal { get; set; }

        public BasicLinkedListItem() { }

        /// <summary>
        /// Creates an item with a link to either internal or external resource.
        /// </summary>
        /// <param name="text">Text to display.</param>
        /// <param name="link">Link to the resource.</param>
        /// <param name="isExternal">True if the resource is external.</param>
        public BasicLinkedListItem(string text, string link, bool isExternal = false)
            : base(text)
        {
            Link = link;
            IsExternal = isExternal;
        }
    }
}